//控制台基准测试

const log = console.log;

function longTask() {
  let num = 0
  for (let i = 0; i <= 10086; i++) {
    for (let j = 0; j < 10000; j++) {
      num = i + j
    }
  }
}

console.time('all')//相加

console.time('TEST')
longTask()
console.timeEnd('TEST')

console.time('1');
longTask()
console.timeEnd('1');

console.timeEnd('all')